package com.homer.android.sdk.type.devcie.status;

import com.homer.android.sdk.devcie.status.IEspStatusUart;


public class EspStatusUart implements IEspStatusUart, Cloneable
{
    private int mIsLightOn;
    
    private int mIsDefenceOn;
    
    private int mIsDoorBell;
    
    private boolean isOnline;
    
    private boolean isSuccess;
    
    @Override
	public int isLightOn() {
		return mIsLightOn;
	}

	@Override
	public void setIsLightOn(int isOn) {
		this.mIsLightOn = isOn;
		
	}

	@Override
	public int isDefenceOn() {
		return mIsDefenceOn;
	}

	@Override
	public void setIsDefenceOn(int isOn) {
		this.mIsDefenceOn = isOn;
		
	}

	@Override
    public String toString()
    {
        return "EspStatusUart: (mIsLightOn=[" + mIsLightOn + "],mIsDefenceOn=["+mIsDefenceOn+"])";
    }
    
    @Override
    public Object clone()
        throws CloneNotSupportedException
    {
        return super.clone();
    }

	@Override
	public void setIsDoorBellOn(int isOn) {
		this.mIsDoorBell = isOn;
	}

	@Override
	public void setIsOnline(boolean isOnline) {
		this.isOnline = isOnline;
		
	}

	public boolean isOnline() {
		return isOnline;
	}

	public void setOnline(boolean isOnline) {
		this.isOnline = isOnline;
	}

	@Override
	public void setIsSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
		
	}

	@Override
	public boolean isSuccess() {
		// TODO Auto-generated method stub
		return isSuccess;
	}
	
	
}

